Most operations in wxEuphoria are done using
this pointers to objects (the value returned
by
create(). Some things, such as events, however, require that control IDs be used. It is
recommended that you create your controls with the default ID of -1, and allow wxWidgets to
automatically generate a unique id for you. IDs are generated starting at -201 and decrease
from there. You can use
get_id() or
get_menuitem_id() to determine IDs when necessary.
There are some IDs, however, that have been set aside for specific uses, and will often be
used for menu items or command buttons. Here is a list:
Standard menu IDs
- wxID_LOWEST
- wxID_OPEN
- wxID_CLOSE
- wxID_NEW
- wxID_SAVE
- wxID_SAVEAS
- wxID_REVERT
- wxID_EXIT
- wxID_UNDO
- wxID_REDO
- wxID_HELP
- wxID_PRINT
- wxID_PRINT_SETUP
- wxID_PREVIEW
- wxID_ABOUT
- wxID_HELP_CONTENTS
- wxID_HELP_COMMANDS
- wxID_HELP_PROCEDURES
- wxID_HELP_CONTEXT
- wxID_CUT
- wxID_COPY
- wxID_PASTE
- wxID_CLEAR
- wxID_FIND
- wxID_DUPLICATE
- wxID_SELECTALL
- wxID_FILE1
- wxID_FILE2
- wxID_FILE3
- wxID_FILE4
- wxID_FILE5
- wxID_FILE6
- wxID_FILE7
- wxID_FILE8
- wxID_FILE9
Standard button IDs
- wxID_OK
- wxID_CANCEL
- wxID_APPLY
- wxID_YES
- wxID_NO
- wxID_STATIC
- wxID_FORWARD
- wxID_BACKWARD
- wxID_DEFAULT
- wxID_MORE
- wxID_SETUP
- wxID_RESET
IDs used by generic file dialog (11 consecutive starting from this value)
- wxID_FILEDLGG
- wxID_HIGHEST
func new_id()
Parent Topics:
Controls
Category: IDs
Generates an integer identifier unique to this run of the program. This can be used
to generate ids for menuitems or other controls.